What is the performance and footprint difference between the quad and triangle represenation for a surface in rgl?
data(volcano)
library(raster)
## Loading required package: sp
library(rgl)
library(rglwidget)
library(gris) ## devtools::install_github("mdsumner/gris")
##
## Attaching package: 'gris'
## The following object is masked from 'package:rgl':
##
## triangulate
r <- setExtent(raster(volcano), extent(0, ncol(volcano), 0, nrow(volcano)))
r <- disaggregate(r, fact = 5)
quadmesh <- bgl(r, r)
shade3d(quadmesh, col = "grey")
subid <- currentSubscene3d()
rglwidget(elementId="quad")